;; (list 'call-global info 'terpri (list stream))))
(defun gcst (n &optional e)
- (ms "(object(*)(" (cdr (mapcan (lambda (x) (declare (ignore x)) (list "," "object")) (make-list n))) (when e ",...") "))"))
+ (let* ((m (min n (- call-arguments-limit 2)))
+ (l1 (make-list m :initial-element ",object"))
+ (l1 (when l1 (cons "object" (cdr l1))))
+ (l2 (when (> n m) (make-list (- n m) :initial-element ",object"))))
+ (ms "(object(*)(" l1 l2 (when e ",...") "))")))
(defun c2apply (funob args)
(unless (eq 'ordinary (car funob)) (baboon))
sKformat_control,make_simple_string(a_),sKformat_arguments,list(1,(b_)))
#define FEtoo_few_arguments(a_,b_) \
Icall_error_handler(sLprogram_error,null_string,4,\
- sKformat_control,make_simple_string("~S [or a callee] requires less than ~R argument~:p."),\
+ sKformat_control,make_simple_string("~S [or a callee] requires more than ~R argument~:p."),\
sKformat_arguments,list(2,ihs_top_function_name(ihs_top),make_fixnum((b_)-(a_))))
#define FEwrong_no_args(a_,b_) \
Icall_error_handler(sLprogram_error,null_string,4,\
#define FEtoo_many_arguments(a_,b_) \
Icall_error_handler(sLprogram_error,null_string,4,\
- sKformat_control,make_simple_string("~S [or a callee] requires more than ~R argument~:p."),\
+ sKformat_control,make_simple_string("~S [or a callee] requires less than ~R argument~:p."),\
sKformat_arguments,list(2,ihs_top_function_name(ihs_top),make_fixnum((b_)-(a_))))
#define FEtoo_many_argumentsF(a_) \
Icall_error_handler(sLprogram_error,null_string,4,\